<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Edu-Skill - Education Template</title>
    <!-- Chosen CSS -->
    <link href="/${res}/css/dashboard.css" rel="stylesheet">
    <!-- Custom Main StyleSheet CSS -->
    <link href="/${res}/style.css" rel="stylesheet">
    <!-- Color CSS -->
    <link href="/${res}/css/color.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="/${res}/css/responsive.css" rel="stylesheet">

</head>

<body>
<!--gt Wrapper Start-->
<div class="gt_wrapper">
    <!--Header Wrap Start-->
    [#include "../include/nav.html"/]
    <!--Header Wrap End-->

    <!--Sub Banner Wrap Start -->
    <!--    <div class="gt_sub_banner_bg default_width">
            <div class="container">
                <div class="gt_sub_banner_hdg  default_width">
                    <h2>My Profile</h2>
                    <h6>Welcome To Educskill</h6>
                </div>
            </div>
        </div>-->
    <!--Sub Banner Wrap End -->
    <!--Breadcrumb Wrap End -->
    <div class="gt_breadcrumb_bg default_width">
        <div class="container">
            <div class="gt_breadcrumb_wrap default_width">
                <ul>
                    <li><a href="#">Home</a></li>
                    <li><a href="#">My Profile</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!--Breadcrumb Wrap End -->

    <!--Main Content Wrap Start-->
    <div class="gt_content_wrap">
        <!--Classes Wrap Start-->
        <section class="gt_courses_bg">
            <div class="container">

                <!-- Dashboard Side Bar Wrap Start -->
                <div class="col-md-4">
                    <div class="gt-user-sidebar">
                        <div class="gt_d_author_wrap">
                            <div class="gt_d_author_pic">
                                <figure>
                                    [#if user.userImg??]<img src="${base}/${user.userImg}">[#else]<img
                                        src="/${res}/images/userImg-large.png">
                                    [/#if]
                                    <a href="${base}/member/portrait.jspx"> 更换头像</a>
                                </figure>
                            </div>
                            <div class="gt_d_author_pic_des">
                                <h5>${user.username}</h5>
                                <span class="gt_hdg_span"></span>
                                <p>Phon ID</p>
                                <label>${user.mobile!?html}</label>
                            </div>
                            <div class="gt_d_author_sbj">
                                <h6>会员组别</h6>
                                <span>${user.group.name}</span>
                                <h6>自我介绍</h6>
                                <span>${user.intro!}</span>

                            </div>
                        </div>
                        <div class="gt-usser-account-list">
                            <ul>
                                <li><a href="${base}/member/index.jspx" class="on"><i class="icon-book gt-color"></i>个人资料</a>
                                </li>
                                <li><a href="${base}/member/contribute_list.jspx"><i class="icon-book gt-color"></i>投稿管理</a>
                                </li>
                                <li><a href="${base}/member/resume.jspx"><i class="icon-book gt-color"></i>应聘管理</a></li>
                                <li><a href="${base}/member/mycomments.jspx"><i class="icon-book gt-color"></i>我的评论</a>
                                </li>
                                <li><a href="${base}/member/myguestbook.jspx"><i class="icon-book gt-color"></i>我的留言</a>
                                </li>
                                <li><a href="${base}/member/collection_list.jspx"><i class="fa fa-heart gt-color"></i>我的收藏</a>
                                </li>
                                <li><a href="${base}/member/message_mng.jspx"><i class="icon-book gt-color"></i>站内信息</a>
                                </li>
                                <li><a href="${base}/member/account.jspx"><i class="icon-book gt-color"></i>服务中心</a>
                                </li>
                            </ul>
                            <a href="#" class="gt-logout"><i class="icon-arrows-2 gt-color"></i>安全退出</a>
                        </div>
                    </div>
                </div>
                <!-- Dashboard Side Bar Wrap End -->

                <!--Classes List Wrap Start-->
                <div class="col-md-8">
                    <div class="gt_d_classes_wrap default_width mb20">
                        <div class="member-main">
                            <div class="member-child"><a href="${base}/member/contribute_list.jspx" class="on">稿件列表</a>|<a href="${base}/member/contribute_add.jspx">发布稿件</a></div>
                            <div style="padding: 30px 0px;">
                                <form id="tableForm" action="contribute_list.jspx" method="post">
                                    [#if pagination.list?size gt 0]
                                    <table class="table table-bordered">
                                        <caption>边框表格布局</caption>
                                        <thead>
                                        <tr>
                                            <td class="tggl-top">ID</td>
                                            <td class="tggl-top">标题</td>
                                            <td class="tggl-top">栏目</td>
                                            <td class="tggl-top">状态</td>
                                            <td class="tggl-top">点击</td>
                                            <td class="tggl-top">发布时间</td>
                                            <td class="tggl-top">操作</td>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        [#list pagination.list as c]
                                        <tr>
                                            <td>${c.id}</td>
                                            <td style="text-align:left; text-indent:5px;"><a href="${c.url!}">${c.title?html}</a>
                                            </td>
                                            <td>${c.channel.name}</td>
                                            <td>[#if c.checked]审核通过[#elseif c.checkStep==0]未审核[#elseif
                                                c.rejected]退回[#else]审核中[/#if]
                                            </td>
                                            <td>${c.views}</td>
                                            <td>${c.releaseDate?string('yyyy-MM-dd')}</td>
                                            <td>[#if c.checkStep==0||c.rejected]<a
                                                    href="contribute_edit.jspx?id=${c.id}&nextUrl=contribute_list.jspx">修改<a>
                                                | <a
                                                    href="contribute_delete.jspx?ids=${c.id}&nextUrl=contribute_list.jspx">删除<a>[#else]修改
                                                | 删除[/#if]</td>
                                        </tr>
                                        [/#list]
                                        </tbody>
                                    </table>
                                    <input type="hidden" name="pageNo"/>
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="center" class="pn-sp">
                                                共 ${pagination.totalCount} 条&nbsp;
                                                每页 ${pagination.pageSize} 条&nbsp;
                                                <input type="button" value="首 页" onclick="_gotoPage('1');" [#if
                                                       pagination.firstPage] disabled="disabled" [/#if]/>
                                                <input type="button" value="上一页"
                                                       onclick="_gotoPage('${pagination.prePage}');" [#if
                                                       pagination.firstPage] disabled="disabled" [/#if]/>
                                                <input type="button" value="下一页"
                                                       onclick="_gotoPage('${pagination.nextPage}');" [#if
                                                       pagination.lastPage] disabled="disabled" [/#if]/>
                                                <input type="button" value="尾 页"
                                                       onclick="_gotoPage('${pagination.totalPage}');" [#if
                                                       pagination.lastPage] disabled="disabled" [/#if]/>&nbsp;
                                                当前 ${pagination.pageNo}/${pagination.totalPage} 页 &nbsp;转到第<input
                                                    type="text" id="_goPs" onfocus="this.select();"
                                                    onkeypress="if(event.keyCode==13){$('#_goPage').click();return false;}"
                                                    style="width:50px; border:1px solid #e7e7e7;"/>页
                                                <input id="_goPage" type="button" value="转"
                                                       onclick="_gotoPage($('#_goPs').val());" [#if
                                                       pagination.totalPage==1] disabled="disabled" [/#if] />
                                            </td>
                                        </tr>
                                    </table>
                                    <script type="text/javascript">
                                        function _gotoPage(pageNo) {
                                            try {
                                                var tableForm = document.getElementById("tableForm");
                                                $("input[name=pageNo]").val(pageNo);
                                                tableForm.action = "contribute_list.jspx";
                                                tableForm.onsubmit = null;
                                                tableForm.submit();
                                            } catch (e) {
                                                alert('_gotoPage(pageNo)方法出错');
                                            }
                                        }
                                    </script>
                                    [#else]
                                    <div>暂无投稿</div>
                                    [/#if]
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!--Classes Wrap End-->
    </div>
    <!--Main Content Wrap End-->

    <!--Footer Wrap Start-->

    <!--Footer Wrap End-->

    <!--Back to Top Wrap Start-->
    <div class="back-to-top">
        <a href="#home"><i class="fa fa-angle-up"></i></a>
    </div>
    <!--Back to Top Wrap Start-->

</div>
<!--gt Wrapper End-->

<!--Jquery Library-->
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<!--Bootstrap core JavaScript-->
<script src="/${res}/js/bootstrap.min.js"></script>
<!--Custom JavaScript-->
<script src="/${res}/js/custom.js"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#jvForm").validate();
    });
</script>

</body>
</html>
